<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head>
    <meta charset="utf-8">
    <title>CBD停车管理平台</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

   
    <link rel="stylesheet" type="text/css" href="../../lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../../lib/font-awesome/css/font-awesome.css">

    <script src="../../lib/jquery-1.11.1.min.js" type="text/javascript"></script>

     <!--   <script src="../../lib/jQuery-Knob/js/jquery.knob.js" type="text/javascript"></script> -->
    


    <link rel="stylesheet" type="text/css" href="../../stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="../../stylesheets/premium.css">

</head>
<body class="theme-blue">

    <!-- Demo page code -->

   <!--  <script type="text/javascript">
        $(function() {
            var match = document.cookie.match(new RegExp('color=([^;]+)'));
            if(match) var color = match[1];
            if(color) {
                $('body').removeClass(function (index, css) {
                    return (css.match (/\btheme-\S+/g) || []).join(' ')
                })
                $('body').addClass('theme-' + color);
            }

            $('[data-popover="true"]').popover({html: true});
            
        });
       
    </script> -->
    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { 
            color: #fff;
        }
        a{ position: relative; text-decoration: none; border-bottom: 1px dotted #ccc; padding-bottom: 5px; ;    font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;}
        .font1{
            font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;
        }
       a:link{
            text-decoration:none;
            }
            a:visited{
            text-decoration:none;
            }
            a:hover{
            text-decoration:none;
            }
            a:active{
            text-decoration:none;
            } 
      	html{
      		overflow-x:hidden;
      		overflow-y:hidden;
      	}
      
    </style>

    <!-- <script type="text/javascript">
        $(function() {
            var uls = $('.sidebar-nav > ul > *').clone();
            uls.addClass('visible-xs');
            $('#main-menu').append(uls.clone());
        });
    </script> -->

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../../../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../../../assets/ico/apple-touch-icon-57-precomposed.png">
  

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
   
  <!--<![endif]-->

    <div class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 欢迎访问CBD平台</span></a>
	          <!-- <div style="float:left">
	          <h3 style="color:white;margin-left:40px;width:190px;" class="page-title">个人信息</h3>
	                    
	        </div> -->
        </div>

        <div class="navbar-collapse collapse" style="height: 1px;">
          <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 3px;"></span> ${sessionScope.myOperator.operatorName}
                    <i class="fa fa-caret-down"></i>
                </a>

              <ul class="dropdown-menu">
                <li><a style="margin:0 auto;" href="loginout.do?role=myOperator" onclick="loginout()"><span style="margin-left:40px;">注销</span></a></li>
                <li><a style="margin:0 auto;"><span class="label label-info" id="count">${count}</span> 当前用户</a></li>
              </ul>
            </li>
          </ul>

        </div>
      </div>

    <div style="height:500px;" class="sidebar-nav">
    <ul>
    <input id="operatorID" type="hidden" value="${sessionScope.myOperator.user.userID }"> 
    <input id="opId" type="hidden" value="">
    <li class="firstbar"><a href="#" data-target=".dashboard-menu" class="nav-header" data-toggle="collapse"><i class="fa fa-fw fa-dashboard"></i> 个人信息<i class="fa fa-collapse"></i></a></li>
    <li><ul class="dashboard-menu nav nav-list collapse in">
            <li ><a id="pim" href="#" class="个人信息" index="PIM.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 修改个人信息</a></li>
    </ul></li>
	<li class="firstbar">
    <a level="1" href="#" data-target=".user-menu" class="nav-header collapsed" data-toggle="collapse"><i style="padding-right:3px;" class="glyphicon glyphicon-list"></i> 用户管理<i class="fa fa-collapse"></i></a></li>
        <li level="1"><ul class="user-menu nav nav-list collapse">
            <li><a href="javascript:void(0)" class="用户管理" index="operator.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 操作员管理</a></li>
            <li ><a href="#" class="用户管理" index="enterprise.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 企业用户管理</a></li>
            <li ><a href="#" class="用户管理" index="ensureLandlady.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 审批包租婆</a></li>
    </ul></li>

        <li class="firstbar"><a level="2" href="#" data-target=".premium-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-fighter-jet"></i> 车位管理<i class="fa fa-collapse"></i></a></li>
        <li level="2"><ul class="premium-menu nav nav-list collapse">
            <li><a href="#" class="车位管理" index="addCbdpact.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 新增外部车位</a>
            <li ><a href="#" class="车位管理" index="addPortPact.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 续约外部车位</a></li>
            <li ><a href="#" class="车位管理" index="cancelPortContract.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 解约外部车位</a></li>
            <li ><a href="#" class="车位管理" index="showLandladyNewPort.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 审批包租婆新增车位</a></li>
    </ul></li>
        <li class="firstbar"><a level="3" href="#" data-target=".accounts-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i> 合同管理<i class="fa fa-collapse"></i></a></li>
        <li level="3"><ul class="accounts-menu nav nav-list collapse">
            <li ><a href="#"  class="合同管理" index="qianyue.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 租户签约</a></li>
            <li ><a href="#" class="合同管理" index="xuyue.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 租户续约</a></li>
            <li ><a href="#" class="合同管理" index="jieyue.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 租户解约</a></li>
    </ul></li>
<li class="firstbar">
        <a level="4" href="#" data-target=".faq-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-comment"></i>投诉信息<i class="fa fa-collapse"></i></a></li>
        <li level="4"><ul  class="faq-menu nav nav-list collapse">
            <li><a href="#" class="投诉信息" index="landladyComplaint.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 包租婆投诉</a>
            <li ><a href="#" class="投诉信息" index="renterComplaint.jsp">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="fa fa-caret-right"></span> 抢租客投诉</a></li>
    </ul></li>
            </ul>
    </div>

    <div style="padding:0px;padding:10px 10px 10px 10px;" class="content">
        <div style="margin:0px;" class="header">
            <div class="stats">
    
</div>

                    <ul style="padding:0px;" class="breadcrumb">
            <li><a href="operatorMain.jsp">Home</a> </li>
            <li class="active" id="head-class"></li>
            <li id="title-class" class="active"></li>
        </ul>

        </div>
        <div class="main-content">
            

 <iframe src="welcome.jsp"  allowtransparency="true" style="background-color=transparent"  frameborder="0" width="100%" height="500px;" scrolling="no" id="if"></iframe>


  
        </div>
        <footer style="margin:0px;">
                <hr>

                
                <p class="pull-right">Write by <a href="#" title="后台模板" target="_blank">j126一组
                    </a></p>
                <p>© 2016 <a href="#" target="_blank">Portnine</a></p>
            </footer>
    </div>


    <script src="../../lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
   /*  var FFextraHeight = 0;

    if (window.navigator.userAgent.indexOf("Firefox") >= 1) {

        FFextraHeight = 16;

    }

    function ReSizeiFrame(obj) {

        var iframe = document.getElementById("if");

        if (iframe && !window.opera) {

            iframe.style.display = "block";

            if (iframe.contentDocument && iframe.contentDocument.body.offsetHeight) {

                iframe.height = iframe.contentDocument.body.offsetHeight + FFextraHeight;

            }

            else if (iframe.Document && iframe.Document.body.scrollHeight) {

                iframe.height = iframe.Document.body.scrollHeight;

                alert(iframe.Document.body.scrollHeight);  

            }

        }

    } */
    
    
    $.ajax({
		url:"getCount.do",
		type:"post",
		success:function(msg){
			
			$("#count").html(msg);
			
		}
	})
	// $(window).bind('beforeunload',function(){
    //		 $.ajax({
  	//	 		url:"../../handCount.do",
  	//	 		type:"post",
  //		 		success:function(msg){
  		 			
  //		 		}
  //		 	})
   // 	 });
  //  	 function loginout(){
  //  		 $(window).unbind('beforeunload');
 //   	 }
   var t = setInterval(function(){
    	$.ajax({
    		url:"getCount.do",
    		type:"post",
    		success:function(msg){
    			console.info(msg);
    			$("#count").html(msg);
    			if(msg==0){
    				clearInterval(t);
    			}
    		}
    	})
    	
    },5000)
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
         $("li ul li a").click(function(){
            $("#head-class").html($(this).attr("class"));
            $("#title-class").html($(this).html().split(">")[2]);
            $(".page-title").html($(this).html().split(">")[2]);
            if($(this).attr("index")=="operator.jsp"){
            	$("#if").attr("src",$(this).attr("index")+"?id="+$("#opId").val());
            }else if($(this).attr("index")=="PIM.jsp"){
            	$("#if").attr("src",$("#pim").attr("index")+"?id="+ $("#opId").val());
            }else{
            	$("#if").attr("src",$(this).attr("index"));
            }
        })
        
        $(function(){
        $("#opId").val($("#operatorID").val()); 
	    $.ajax({
			url:"findLevel.do",
			type:"post",
			data:{id:$("#operatorID").val()},
			async:false,
			success:function(msg){
				$.each(msg,function(i,n){
					$("[level="+n+"]").remove();			
				}) 
			}	
		}) 
  		})
     
    </script>
    
  
</body></html>